package com.arpa.ntocc.common.domain.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;

/**
 * @program: ntocc
 * @Date: 2019-08-16 08:57
 * @Author: LEO
 * @Description:
 */
public enum PartyStatusEnum  {
    /**
     * 用户启用
     */
    ENABLED(0, "启用"),
    /**
     * 用户禁用
     */
    DISABLED(1, "停用");

    /**
     * 枚举值
     */
    @EnumValue
    private final int value;

    /**
     * 枚举描述
     */
    private final String description;

    PartyStatusEnum(final int value, final String description) {
        this.value = value;
        this.description = description;
    }

    public int getValue(){
        return value;
    }

    @Override
    public String toString(){
        return description;
    }
}
